import request from '@/utils/request'

export const getAllMuBan = () =>
    request({
        url: '/tMuban/all',
        method: 'get'
})

export const getQyMuBan = () =>
    request({
        url: '/tMuban/qy',
        method: 'get'
})


export const updateStatue = (num,id) =>
request({
  url: '/tMuban/' + num + "/id",
  method: 'put',
  params: {
      id: id
  }
})
export const addMuban = (muban,ys,yd,jk) =>
    request({
        url: '/tMuban/'+muban+"/ys/"+yd+"/jk",
        method: 'post',
        params: {
          ys:ys,
          yd:yd,
          jk:jk
      }
    })

    export const updateMuban = (muban,ys,yd,jk) =>
    request({
      url: '/tMuban/'+muban+"/ys/"+yd+"/jk",
      method: 'put',
      params: {
        ys:ys,
        yd:yd,
        jk:jk
      }
    })

    export const getMB = (id) =>
    request({
      url: '/tMuban/' + id ,
      method: 'post'
    })

    export const queryYunDong= (id) =>
    request({
      url: '/tMubanYundong/' + id ,
      method: 'post'
    })

    export const queryJianKang= (id) =>
    request({
      url: '/tMubanJiankang/' + id ,
      method: 'post'
    })

    export const queryYinShi= (id) =>
    request({
      url: '/tMubanYinshi/' + id ,
      method: 'post'
    })




